import { Outlet, useNavigate } from 'react-router-dom'

function Layout() {
	const navigate = useNavigate()
	return (
		<div>
			<h1>Layout</h1>
			<div>
				<button onClick={() => navigate('/')}>home</button>
				<button onClick={() => navigate('/article')}>about</button>
			</div>

			<Outlet />
		</div>
	)
}

export default Layout
